package com.ssm.common;

public class Message {
	
	/**
	 * 代码
	 */
	private String code;

	/**
	 * 成功、失败标志
	 */
	private boolean success = true;
	
	/**
	 * 成功、失败详细信息
	 */
	private String message;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	@Override
	public String toString() {
		return "Message [code=" + code + ", success=" + success + ", message="
				+ message + "]";
	}
}
